<!--
  Generated template for the AssistantofficeapplyPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>办公用品领用申请</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-list class="apply">
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>申请人</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applyapplymember" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>申请公司</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applycompany.name" readonly="true" tappable (click)="applycompanyselect()"></ion-input>
      <i class="iconfont icon-sousuo" item-end tappable (click)="applycompanyselect()"></i>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>申请部门</ion-label>
      <ion-input [(ngModel)]="inputViewModel.applydepartment.name" readonly="true" tappable (click)="applydepartselect()">
      </ion-input>
      <i class="iconfont icon-sousuo" item-end tappable (click)="applydepartselect()"></i>
    </ion-item>
    <ion-item class="titem">
      <ion-label stacked>
        <span>*</span>申请理由</ion-label>
      <ion-textarea [(ngModel)]="inputViewModel.applychangenote"></ion-textarea>
    </ion-item>
    <ion-item class="titem">
      <ion-label stacked>
        <span>*</span>备注</ion-label>
      <ion-textarea [(ngModel)]="inputViewModel.applynote"></ion-textarea>
    </ion-item>
    <!--提交相关 -->
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>当前节点</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applynownode" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>当前处理人</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applynowmember" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>下一步审批节点</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applynextnode" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>下一步审批人</ion-label>
      <ion-input [(ngModel)]="inputViewModel.applynextman.name" readonly="true" tappable (click)="applyapplymemberselect()">
      </ion-input>
      <i class="iconfont icon-sousuo" item-end tappable (click)="applyapplymemberselect()"></i>
    </ion-item>

    <!--办公用品动态 -->
    <ion-item class="aitem">
      <button ion-button (click)="applyapplyofficeselect()">选择办公用品</button>
    </ion-item>
    <div class="applyauto" *ngFor="let item of inputSelectView.applyoaofficeDefitems">
      <ion-item class="sitem">
        <ion-label fixed>名称</ion-label>
        <ion-input type="text" [(ngModel)]="item.name" readonly="true"></ion-input>
      </ion-item>
      <ion-item class="sitem">
        <ion-label fixed>
          <span></span>编号</ion-label>
        <ion-input type="text" [(ngModel)]="item.code" readonly="true"></ion-input>
      </ion-item>
      <ion-item class="sitem">
        <ion-label fixed>
          <span></span>库存</ion-label>
        <ion-input type="number" [(ngModel)]="item.num" readonly="true"></ion-input>
      </ion-item>
      <ion-item class="sitem">
        <ion-label fixed>
          <span>*</span>申请数量</ion-label>
        <ion-input type="number" [(ngModel)]="item.applynum"></ion-input>
      </ion-item>
      <ion-item class="sitem">
        <ion-label fixed>
          <span></span>管理部门</ion-label>
        <ion-input type="text" [(ngModel)]="item.departname" readonly="true"></ion-input>
      </ion-item>
      <ion-item class="sitem">
        <ion-label fixed>
          <span></span>归属</ion-label>
        <ion-input type="text" [(ngModel)]="item.assetBelong" readonly="true"></ion-input>
      </ion-item>
      <ion-item class="aitem">
        <button ion-button (click)="applyapplyofficedelete(item)">删除该行</button>
      </ion-item>
    </div>
    <!--办公用品动态 -->

    <!--执行相关 -->
    <ion-item class="aitem">
      <button ion-button (click)="applyapplydone()">提交</button>
    </ion-item>
  </ion-list>
</ion-content>